package com.wzy.content.api;

import com.wzy.content.model.dto.CourseCategoryTreeDto;
import com.wzy.content.service.CourseCategoryService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author wzy
 * @Date 2023/12/26 15:27
 * @description: 课程分类接口
 */
@RestController
@Api(value = "课程分类信息管理接口",tags = "课程分类信息管理接口")
public class CourseCategoryController {

    @Autowired
    private CourseCategoryService courseCategoryService;
    @GetMapping("/course-category/tree-nodes")
    public List<CourseCategoryTreeDto> queryListTreeNodes(){

        return courseCategoryService.queryTreeNodes("1");
    }
}
